#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    connect(ui->popMessageBoxButton,SIGNAL(clicked()),this,SLOT(popMessageBoxSlots()));
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::popMessageBoxSlots() {
        qDebug()<<"aa1";
    QMessageBox::warning(this,"Error message","aaaaa");
    qDebug()<<"aa";

}

